# 从键盘获取十个数字
# 打印其中单数相加的结果
a = 0
x=0
while a<10:
    number = int(input())
    if number%2==1:
        x+=number
    a+=1
print(x)